package com.lwl.entity.scl;


import com.lwl.entity.Tuser;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
@Table(name = "t_scl_plan")
@Data
//@ApiModel(value = "TSclPlan)", description = "")
public class TSclPlan implements Serializable {
    private static final long serialVersionUID = 267114686136950898L;
    @Id
    @Column(name = "id")
    private Integer id;
    @Column(name = "planname")
    //@ApiModelProperty(value = "计划名称")
    private String planname;
    @Column(name = "begintime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //@ApiModelProperty(value = "开始时间")
    private Date begintime;
    @Column(name = "endtime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //@ApiModelProperty(value = "结束时间")
    private Date endtime;
    @Column(name = "code")
    //@ApiModelProperty(value = "邀请码")
    private String code;
    @Column(name = "uid")
    //@ApiModelProperty(value = "创建人id")
    private Integer uid;
    @Column(name = "createtime")
    //@ApiModelProperty(value = "创建时间")
    private Date createtime;
    @Column(name = "updatetime")
    //@ApiModelProperty(value = "修改时间")
    private Date updatetime;
    @Column(name = "status")
    //@ApiModelProperty(value = "状态")
    private Integer status;

    //多对1
    @Transient
    private Tuser tUser;
}
